import { createApp } from "vue";
import App from "./App.vue";
import store from "./store";
import router from "./router";
import "@/router/permission.js";

import "@/styles/index.scss";
import "element-plus/dist/index.css";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import SvgIcon from "@/icons/index.js";
import filters from "./utils/filters";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
SvgIcon(app);
filters(app);
app.use(store).use(router).mount("#app");
